import request from '@/utils/request'

// 查询水质合格率趋势列表
export function listDispatchWaterQualityQualifiedRateTrendStats(query) {
  return request({
    url: '/system/dispatchWaterQualityQualifiedRateTrendStats/list',
    method: 'get',
    params: query
  })
}

// 查询水质合格率趋势详细
export function getDispatchWaterQualityQualifiedRateTrendStats(waterQualityQualifiedRateTrendStatsId) {
  return request({
    url: '/system/dispatchWaterQualityQualifiedRateTrendStats/' + waterQualityQualifiedRateTrendStatsId,
    method: 'get'
  })
}

// 新增水质合格率趋势
export function addDispatchWaterQualityQualifiedRateTrendStats(data) {
  return request({
    url: '/system/dispatchWaterQualityQualifiedRateTrendStats',
    method: 'post',
    data: data
  })
}

// 修改水质合格率趋势
export function updateDispatchWaterQualityQualifiedRateTrendStats(data) {
  return request({
    url: '/system/dispatchWaterQualityQualifiedRateTrendStats',
    method: 'put',
    data: data
  })
}

// 删除水质合格率趋势
export function delDispatchWaterQualityQualifiedRateTrendStats(waterQualityQualifiedRateTrendStatsId) {
  return request({
    url: '/system/dispatchWaterQualityQualifiedRateTrendStats/' + waterQualityQualifiedRateTrendStatsId,
    method: 'delete'
  })
}
